import common from '@ohos.app.ability.common';
import relationalStore from '@ohos.data.relationalStore';

export default class globalData {
  private static _abilityContext: common.UIAbilityContext;

  public static set abilityContext(abilityContext: common.UIAbilityContext) {
    this._abilityContext = abilityContext;
  }

  public static get abilityContext() {
    return this._abilityContext;
  }

  private static _abilityDetailContext: common.UIAbilityContext;

  public static set abilityDetailContext(abilityDetailContext: common.UIAbilityContext) {
    this._abilityDetailContext = abilityDetailContext;
  }

  public static get abilityDetailContext() {
    return this._abilityDetailContext;
  }

  private static _rdbStore: relationalStore.RdbStore;

  public static set rdbStore(rdbStore: relationalStore.RdbStore) {
    this._rdbStore = rdbStore;
  }

  public static get rdbStore() {
    return this._rdbStore;
  }

  private static _cardRdbStore: relationalStore.RdbStore;

  public static set cardRdbStore(cardRdbStore: relationalStore.RdbStore) {
    this._cardRdbStore = cardRdbStore;
  }

  public static get cardRdbStore() {
    return this._cardRdbStore;
  }

  private static _cacheRdbStore: relationalStore.RdbStore;

  public static set cacheRdbStore(cacheRdbStore: relationalStore.RdbStore) {
    this._cacheRdbStore = cacheRdbStore;
  }

  public static get cacheRdbStore() {
    return this._cacheRdbStore;
  }

  private static _filesDir: string;

  public static set filesDir(filesDir: string) {
    this._filesDir = filesDir;
  }

  public static get filesDir() {
    return this._filesDir;
  }

  private static _comicId: number;

  public static set comicId(comicId: number) {
    this._comicId = comicId;
  }

  public static get comicId() {
    return this._comicId;
  }

  private static _notifyId: number;

  public static set notifyId(notifyId: number) {
    this._notifyId = notifyId;
  }

  public static get notifyId() {
    return this._notifyId;
  }

  private static _intervalId: number;

  public static set intervalId(intervalId: number) {
    this._intervalId = intervalId;
  }

  public static get intervalId() {
    return this._intervalId;
  }
}